build: Try to fix docs+subprojects
authorMatthias Clasen <mclasen@redhat.com>
Wed, 30 Sep 2020 20:21:39 +0000 (16:21 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 30 Sep 2020 20:21:39 +0000 (16:21 -0400)
Apparently, subprojects don't have pkgconfig variables :(

docs/reference/meson.build

index a308cc4c87e3d9e3ff8fd82102c7ff5bddee5d5a..4536addda43d3de521d6afa326b57ed22add76af 100644 (file)
@@ -1,11 +1,11 @@
 if get_option('gtk_doc')
-  glib_prefix = dependency('glib-2.0').get_pkgconfig_variable('prefix')
+  glib_prefix = dependency('glib-2.0').get_variable(pkgconfig: 'prefix', default_value: '/usr')
   glib_docpath = join_paths(glib_prefix, 'share', 'gtk-doc', 'html')
 
-  cairo_prefix = dependency('cairo-gobject').get_pkgconfig_variable('prefix')
+  cairo_prefix = dependency('cairo-gobject').get_variable(pkgconfig: 'prefix', default_value: '/usr')
   cairo_docpath = join_paths(cairo_prefix, 'share', 'gtk-doc', 'html', 'cairo')
 
-  gdkpixbuf_prefix = dependency('gdk-pixbuf-2.0').get_pkgconfig_variable('prefix')
+  gdkpixbuf_prefix = dependency('gdk-pixbuf-2.0').get_variable(pkgconfig: 'prefix', default_value: '/usr')
   gdkpixbuf_docpath = join_paths(gdkpixbuf_prefix, 'share', 'gtk-doc', 'html', 'gdk-pixbuf')
 
   docpath = join_paths(gtk_datadir, 'gtk-doc', 'html')